﻿using System;

namespace Fuse8.DomainFramework.Practices.Domain
{
	public class PropertyNotLoadedException : Exception
	{
		public PropertyNotLoadedException(string message) : base(message) { } 
	}

	public class PropertyNotLoadedException<T> : PropertyNotLoadedException
	{
		public PropertyNotLoadedException(string propertyName, string key)
			: base(String.Format("Property {0} in {1} not loaded [{2}]", propertyName, typeof (T).FullName, key))
		{
		}
	}
}